// File generated from our OpenAPI spec by Stainless.

package com.metest.api.models.rest.actuator.caches

import com.fasterxml.jackson.module.kotlin.jacksonTypeRef
import com.metest.api.core.jsonMapper
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test

internal class CachRetrieveByNameResponseTest {

    @Test
    fun create() {
        val cachRetrieveByNameResponse = CachRetrieveByNameResponse.builder().build()
    }

    @Test
    fun roundtrip() {
        val jsonMapper = jsonMapper()
        val cachRetrieveByNameResponse = CachRetrieveByNameResponse.builder().build()

        val roundtrippedCachRetrieveByNameResponse =
            jsonMapper.readValue(
                jsonMapper.writeValueAsString(cachRetrieveByNameResponse),
                jacksonTypeRef<CachRetrieveByNameResponse>(),
            )

        assertThat(roundtrippedCachRetrieveByNameResponse).isEqualTo(cachRetrieveByNameResponse)
    }
}
